package cn.tedu.toa.management.sys.service;

import cn.tedu.toa.management.sys.entity.FNews;
import cn.tedu.toa.management.sys.vo.NewsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 新闻 服务类
 * </p>
 *
 * @author huaqian
 * @since 2021-10-02
 */
public interface FNewsService extends IService<FNews> {

    List<FNews> getNews();

    NewsVo news(String title);

    PageInfo<FNews> findNewsList(String name, Integer pageNum, Integer pageSize);

    void insert(FNews news, String currentUserName);

    void delete(Integer id);

    FNews getNewsByTitle(String title);

    void edit(FNews news, String currentUserName);
}
